window.sysConsts = {
    jsonContentType: {
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
    },
    formContentType: {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
        },
    },
    fileContentType: {
        headers: { 'Content-Type': 'multipart/form-data' },
    },
    blobType: {
        responseType: 'blob',
    },
    dateFormat: {
        monthDATE: 'YYYY-MM',
        DATE: 'YYYY-MM-DD',
        DATETIME: 'YYYY-MM-DD HH:mm:ss',
        DATETIME_14: 'YYYYMMDDHHmmss',
        DATE_HHmm: 'YYYY-MM-DD HH:mm',
        DATETIME_START: 'YYYY-MM-DD 00:00:00',
        DATETIME_END: 'YYYY-MM-DD 23:59:59',
    },
    beautifierConf: {
        html: {
            indent_size: '2',
            indent_char: ' ',
            max_preserve_newlines: '-1',
            preserve_newlines: false,
            keep_array_indentation: false,
            break_chained_methods: false,
            indent_scripts: 'separate',
            brace_style: 'end-expand',
            space_before_conditional: true,
            unescape_strings: false,
            jslint_happy: false,
            end_with_newline: true,
            wrap_line_length: '110',
            indent_inner_html: true,
            comma_first: false,
            e4x: true,
            indent_empty_lines: true,
        },
        // js: {
        //   indent_size: '2',
        //   indent_char: ' ',
        //   max_preserve_newlines: '-1',
        //   preserve_newlines: false,
        //   keep_array_indentation: true,
        //   break_chained_methods: false,
        //   indent_scripts: 'normal',
        //   brace_style: 'expand',
        //   space_before_conditional: true,
        //   unescape_strings: false,
        //   jslint_happy: true,
        //   end_with_newline: true,
        //   wrap_line_length: '110',
        //   indent_inner_html: true,
        //   comma_first: false,
        //   e4x: true,
        //   indent_empty_lines: true
        // }
        js: {
            indent_size: '1',
            indent_char: ' ',
            max_preserve_newlines: '-1',
            preserve_newlines: false,
            keep_array_indentation: false,
            break_chained_methods: false,
            indent_scripts: 'separate',
            brace_style: 'expand',
            space_before_conditional: false,
            unescape_strings: false,
            jslint_happy: false,
            end_with_newline: false,
            wrap_line_length: '0',
            indent_inner_html: false,
            comma_first: false,
            e4x: false,
            indent_empty_lines: false,
        },
    },
    pickerOptions: {
        shortcuts: [
            {
                text: '最近一周',
                onClick(picker) {
                    const end = new Date();
                    const start = new Date();
                    start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                    picker.$emit('pick', [start, end]);
                },
            },
            {
                text: '最近一个月',
                onClick(picker) {
                    const end = new Date();
                    const start = new Date();
                    start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                    picker.$emit('pick', [start, end]);
                },
            },
            {
                text: '最近三个月',
                onClick(picker) {
                    const end = new Date();
                    const start = new Date();
                    start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                    picker.$emit('pick', [start, end]);
                },
            },
        ],
    },
    errorCode: {
        401: '认证失败，无法访问系统资源',
        403: '当前操作没有权限',
        404: '访问资源不存在',
        default: '系统未知错误，请反馈给管理员',
    },
};
window.CODE_CONFIG_100001 = '100001';

window.RESPONSE_SUCCESS = 200;
window.sysUrl = 'http://localhost:57081';
window.sysListernUrl = 'http://test.yangge666.top:57083';
// window.sysListernUrl = 'http://127.0.0.1:57083';

